import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.UIManager;

/**
 * 
 * @author Escalade
 */
public class MVC extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Model model = null;
	private View view = null;
	private Controller controller = null;

	public MVC() {
		controller = new Controller(this);
		model = new Model(this);
		view = new View(this);
		getContentPane().add(view);
	}

	public Model getModel() {
		return model;
	}

	public View getView() {
		return view;
	}

	public Controller getController() {
		return controller;
	}

	public static void main(String[] args) {

		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Exception ex) {
			ex.printStackTrace();
		}

		EventQueue.invokeLater(new Runnable() {

			public void run() {
				JFrame frame = new MVC();
				frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				frame.setTitle("MVC");
				frame.setSize(200, 400);
				frame.setLocationByPlatform(true);
				frame.setVisible(true);
			}
		});
	}
}